/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.manager;

import java.util.Comparator;

import com.common.shiro.bean.UserModel;

/**
 * 比较2个用户登陆时间
 * @author limk
 * @date 2018年2月11日 下午4:52:34
 * @version 1.0
 *
 */
public class ClientSort implements Comparator<UserModel> {
	
	@Override
	public int compare(UserModel prev, UserModel now) {
		return (int) (now.getLogontime().getTime() - prev.getLogontime()
				.getTime());
	}

}
